package org.third.security.cert;

public enum SubjectAlternativeNameGeneralNames {

    otherName, // byte arrays containing the ASN.1 DER encoded form
    rfc822Name, // String
    dNSName, // String
    x400Address, // byte arrays containing the ASN.1 DER encoded form
    directoryName, // String: RFC 2253 string format
    ediPartyName, // byte arrays containing the ASN.1 DER encoded form
    uniformResourceIdentifier, // String
    iPAddress, // String: IPv4 address - dotted quad notation, IPv6 address - form "a1:a2:...:a8"
    registeredID;

    public boolean equalsTo(final String str) {
        return name().equals(str);
    }

    public boolean equalsIgnoreCase(final String str) {
        return name().equalsIgnoreCase(str);
    }
}